package com.gooluke.user.exception;

import com.gooluke.common.enums.BasicError;
import com.gooluke.common.exception.BizException;

import java.util.Map;

/**
 * @author gooluke
 * description
 * datetime 2025-04-02 20:24
 */
public class BusinessException extends BizException {

    private final int code = 501;
    private final String message = "业务异常";

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(int code, String message) {
        super(code, message);
    }

    public BusinessException(BasicError basicError) {
        super(basicError);
    }

    public BusinessException(int code, String message, Map<String, Object> context) {
        super(code, message, context);
    }
}
